package com.itheima.interface1.myinterface.Text2;

public class Text {
    public static void main(String[] args) {
        AnimalOperator animalOperator = new AnimalOperator();
        animalOperator.eat(new Dog());
        animalOperator.eat(new Cat());

    }
}
